package demo;
import java.util.Arrays;
public class MainIn {
    public static void main(String[] args) {
        Student[] student=new Student[]{
                new Student("zhangsan",11),
                new Student("lisi",16),
                new Student("wangwu",10),
                new Student("laoma",9)
        };
        Arrays.sort(student);
        System.out.println(Arrays.toString(student));
    }
}
